package com.ming.stringstudy.feedbacksystem.mapper;

import com.ming.stringstudy.feedbacksystem.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author aming
 * @since 2025-01-19
 */
public interface UserMapper extends BaseMapper<User> {
    User findByAccount(@Param("account") String account);

    List<User> findByAttributes(User user);

    void updateUserByDeletedDeptId(List<Integer> ids);

    void updateUserByDeletedRoleId(List<Integer> ids);
}
